/*
 * <p>Copyright ®Alyce_WX版权所有。</p>
 * 类名:RightQO
 * 创建人:alyce_wx
 * 创建时间:2017-03-30
 */
package com.wx.demo.wcd.domain.qo;

import java.util.List;
import com.yjhl.framework.dao.query.QO;

/**
 * query class for Right 
 * @author alyce_wx
 * @since 1.8
 * @version 1.0.0  
 */
 
public class RightQO extends QO {
    private static final long serialVersionUID = 1L;
    
    /**
     * 权限标识
     */
    private String rightId;    
    private List<String> rightId_list;
    private String rightId_notnull = "N";
    private String rightId_notequal;
    private boolean rightId_like;
    
    /**
     * 权限名称
     */
    private String rightName;    
    private List<String> rightName_list;
    private String rightName_notnull = "N";
    private String rightName_notequal;
    private boolean rightName_like;
    
    /**
     * 权限描述
     */
    private String rightDesc;    
    private List<String> rightDesc_list;
    private String rightDesc_notnull = "N";
    private String rightDesc_notequal;
    private boolean rightDesc_like;
    
    /**
     * 权限代码
     */
    private String rightCode;    
    private List<String> rightCode_list;
    private String rightCode_notnull = "N";
    private String rightCode_notequal;
    private boolean rightCode_like;
    
    public String getRightId() {
        return rightId;
    }
    
    public void setRightId(String rightId) {
        this.rightId = rightId;
    }
    public List<String> getRightId_list() {
        return rightId_list;
    }
    
    public void setRightId_list(List<String> rightId_list) {
        this.rightId_list = rightId_list;
    }
    public String getRightId_notequal() {
        return rightId_notequal;
    }
    
    public void setRightId_notequal(String rightId_notequal) {
        this.rightId_notequal = rightId_notequal;
    }
    public String getRightId_notnull() {
        return rightId_notnull;
    }
    
    public void setRightId_notnull(String rightId_notnull) {
        this.rightId_notnull = rightId_notnull;
    }
    
    public boolean isRightId_like() {
        return rightId_like;
    }
    
    public void setRightId_like(boolean rightId_like) {
        this.rightId_like = rightId_like;
    }
    
    public String getRightName() {
        return rightName;
    }
    
    public void setRightName(String rightName) {
        this.rightName = rightName;
    }
    public List<String> getRightName_list() {
        return rightName_list;
    }
    
    public void setRightName_list(List<String> rightName_list) {
        this.rightName_list = rightName_list;
    }
    public String getRightName_notequal() {
        return rightName_notequal;
    }
    
    public void setRightName_notequal(String rightName_notequal) {
        this.rightName_notequal = rightName_notequal;
    }
    public String getRightName_notnull() {
        return rightName_notnull;
    }
    
    public void setRightName_notnull(String rightName_notnull) {
        this.rightName_notnull = rightName_notnull;
    }
    
    public boolean isRightName_like() {
        return rightName_like;
    }
    
    public void setRightName_like(boolean rightName_like) {
        this.rightName_like = rightName_like;
    }
    
    public String getRightDesc() {
        return rightDesc;
    }
    
    public void setRightDesc(String rightDesc) {
        this.rightDesc = rightDesc;
    }
    public List<String> getRightDesc_list() {
        return rightDesc_list;
    }
    
    public void setRightDesc_list(List<String> rightDesc_list) {
        this.rightDesc_list = rightDesc_list;
    }
    public String getRightDesc_notequal() {
        return rightDesc_notequal;
    }
    
    public void setRightDesc_notequal(String rightDesc_notequal) {
        this.rightDesc_notequal = rightDesc_notequal;
    }
    public String getRightDesc_notnull() {
        return rightDesc_notnull;
    }
    
    public void setRightDesc_notnull(String rightDesc_notnull) {
        this.rightDesc_notnull = rightDesc_notnull;
    }
    
    public boolean isRightDesc_like() {
        return rightDesc_like;
    }
    
    public void setRightDesc_like(boolean rightDesc_like) {
        this.rightDesc_like = rightDesc_like;
    }
    
    public String getRightCode() {
        return rightCode;
    }
    
    public void setRightCode(String rightCode) {
        this.rightCode = rightCode;
    }
    public List<String> getRightCode_list() {
        return rightCode_list;
    }
    
    public void setRightCode_list(List<String> rightCode_list) {
        this.rightCode_list = rightCode_list;
    }
    public String getRightCode_notequal() {
        return rightCode_notequal;
    }
    
    public void setRightCode_notequal(String rightCode_notequal) {
        this.rightCode_notequal = rightCode_notequal;
    }
    public String getRightCode_notnull() {
        return rightCode_notnull;
    }
    
    public void setRightCode_notnull(String rightCode_notnull) {
        this.rightCode_notnull = rightCode_notnull;
    }
    
    public boolean isRightCode_like() {
        return rightCode_like;
    }
    
    public void setRightCode_like(boolean rightCode_like) {
        this.rightCode_like = rightCode_like;
    }
    

    @Override
	public String toString(){
		
		String toString = "{";
		  	 if(this.rightId != null){
		   	 	toString += (this.rightId+",");
		   	 }
		  	 if(this.rightName != null){
		   	 	toString += (this.rightName+",");
		   	 }
		  	 if(this.rightDesc != null){
		   	 	toString += (this.rightDesc+",");
		   	 }
		  	 if(this.rightCode != null){
		   	 	toString += (this.rightCode+",");
		   	 }
		  if(toString.lastIndexOf(",") == ( toString.length()-1)){
		  	toString = toString.substring(0, toString.length()-1);
		  }
		 toString += "}";
		return toString;
		
	}
	
	public String inputDescription(){
		
		String inputDescription = "{";
		   if(this.rightId != null){
		   		inputDescription += (this.rightId+" : 权限标识,");
		   }
		   if(this.rightName != null){
		   		inputDescription += (this.rightName+" : 权限名称,");
		   }
		   if(this.rightDesc != null){
		   		inputDescription += (this.rightDesc+" : 权限描述,");
		   }
		   if(this.rightCode != null){
		   		inputDescription += (this.rightCode+" : 权限代码,");
		   }
		  if(inputDescription.lastIndexOf(",") == ( inputDescription.length()-1)){
		  	inputDescription = inputDescription.substring(0, inputDescription.length()-1);
		  }
		  inputDescription += "}";
		
		return inputDescription;
		
	}
}
